package com.sniff.atp.service.purchase;

import com.alibaba.fastjson2.JSONObject;
import com.sniff.atp.dto.SystemLoginDTO;
import com.sniff.atp.enums.api.PurchaseAPI;
import com.sniff.atp.utils.Headers;
import com.sniff.atp.utils.HttpClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @BelongsProject: sniff-atp
 * @BelongsPackage: com.sniff.atp.service.purchase
 * @Author: zxy
 * @CreateTime: 2023-05-18 21:08
 * @Description:
 * @Version: 1.0
 */
@Service
public class SupplierManagerService {

    public String supplierManageQuery(SystemLoginDTO systemLoginDTO){

        /**
         * pageSize: 10
         * pageNum: 1
         * channel: 1
         */
        Map<String, String> param = new HashMap();
        param.put("pageSize", "100");
        param.put("channel", "1");

        return new HttpClientUtil(Headers.setSystemHeader(systemLoginDTO)).doGet(PurchaseAPI.SUPPLIER_MANAGER.getApi(), param);

    }
}
